package com.example.pojo;


import java.io.Serializable;

public class NcPojob implements Serializable {
    private Integer lon;
    private Integer lat;
    private Float pre_15m;
    private Float pre_1h;
    private Float prs;
    private Float phu;
    private Float sr;
    private Float tem;
    private Float wd;
    private Float ws;
    private Integer hour;
    private Integer level;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        NcPojob ncPojo = (NcPojob) o;

        if (lon != null ? !lon.equals(ncPojo.lon) : ncPojo.lon != null) return false;
        if (lat != null ? !lat.equals(ncPojo.lat) : ncPojo.lat != null) return false;
        if (pre_15m != null ? !pre_15m.equals(ncPojo.pre_15m) : ncPojo.pre_15m != null) return false;
        if (pre_1h != null ? !pre_1h.equals(ncPojo.pre_1h) : ncPojo.pre_1h != null) return false;
        if (prs != null ? !prs.equals(ncPojo.prs) : ncPojo.prs != null) return false;
        if (phu != null ? !phu.equals(ncPojo.phu) : ncPojo.phu != null) return false;
        if (sr != null ? !sr.equals(ncPojo.sr) : ncPojo.sr != null) return false;
        if (tem != null ? !tem.equals(ncPojo.tem) : ncPojo.tem != null) return false;
        if (wd != null ? !wd.equals(ncPojo.wd) : ncPojo.wd != null) return false;
        if (ws != null ? !ws.equals(ncPojo.ws) : ncPojo.ws != null) return false;
        if (hour != null ? !hour.equals(ncPojo.hour) : ncPojo.hour != null) return false;
        return level != null ? level.equals(ncPojo.level) : ncPojo.level == null;
    }

    @Override
    public int hashCode() {
        int result = lon != null ? lon.hashCode() : 0;
        result = 31 * result + (lat != null ? lat.hashCode() : 0);
        result = 31 * result + (pre_15m != null ? pre_15m.hashCode() : 0);
        result = 31 * result + (pre_1h != null ? pre_1h.hashCode() : 0);
        result = 31 * result + (prs != null ? prs.hashCode() : 0);
        result = 31 * result + (phu != null ? phu.hashCode() : 0);
        result = 31 * result + (sr != null ? sr.hashCode() : 0);
        result = 31 * result + (tem != null ? tem.hashCode() : 0);
        result = 31 * result + (wd != null ? wd.hashCode() : 0);
        result = 31 * result + (ws != null ? ws.hashCode() : 0);
        result = 31 * result + (hour != null ? hour.hashCode() : 0);
        result = 31 * result + (level != null ? level.hashCode() : 0);
        return result;
    }

    @Override
    public String toString() {
        return "NcPojo{" +
                "lon=" + lon +
                ", lat=" + lat +
                ", pre_15m=" + pre_15m +
                ", pre_1h=" + pre_1h +
                ", prs=" + prs +
                ", phu=" + phu +
                ", sr=" + sr +
                ", tem=" + tem +
                ", wd=" + wd +
                ", ws=" + ws +
                ", hour=" + hour +
                ", level=" + level +
                '}';
    }

    public Integer getLon() {
        return lon;
    }

    public void setLon(Integer lon) {
        this.lon = lon;
    }

    public Integer getLat() {
        return lat;
    }

    public void setLat(Integer lat) {
        this.lat = lat;
    }

    public Float getPre_15m() {
        return pre_15m;
    }

    public void setPre_15m(Float pre_15m) {
        this.pre_15m = pre_15m;
    }

    public Float getPre_1h() {
        return pre_1h;
    }

    public void setPre_1h(Float pre_1h) {
        this.pre_1h = pre_1h;
    }

    public Float getPrs() {
        return prs;
    }

    public void setPrs(Float prs) {
        this.prs = prs;
    }

    public Float getPhu() {
        return phu;
    }

    public void setPhu(Float phu) {
        this.phu = phu;
    }

    public Float getSr() {
        return sr;
    }

    public void setSr(Float sr) {
        this.sr = sr;
    }

    public Float getTem() {
        return tem;
    }

    public void setTem(Float tem) {
        this.tem = tem;
    }

    public Float getWd() {
        return wd;
    }

    public void setWd(Float wd) {
        this.wd = wd;
    }

    public Float getWs() {
        return ws;
    }

    public void setWs(Float ws) {
        this.ws = ws;
    }

    public Integer getHour() {
        return hour;
    }

    public void setHour(Integer hour) {
        this.hour = hour;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public NcPojob() {
    }

    public NcPojob(Integer lon, Integer lat, Float pre_15m, Float pre_1h, Float prs, Float phu, Float sr, Float tem, Float wd, Float ws, Integer hour, Integer level) {
        this.lon = lon;
        this.lat = lat;
        this.pre_15m = pre_15m;
        this.pre_1h = pre_1h;
        this.prs = prs;
        this.phu = phu;
        this.sr = sr;
        this.tem = tem;
        this.wd = wd;
        this.ws = ws;
        this.hour = hour;
        this.level = level;
    }
}
